package com.xh.xyzp.domain.vo;

import com.xh.xyzp.exception.ApiException;
import lombok.Data;

@Data
public class ResumeSubmitReq {
    private Long id;
    private String name;
    private Integer age;
    private String phone;
    private String email;
    private String school;
    private String education;
    private String sex;
    private String major;

    public void checkParams() {
        if (name == null || name.trim().isEmpty()) {
            throw new ApiException("姓名不能为空");
        }
        if (phone == null || phone.trim().isEmpty()) {
            throw new ApiException("手机号不能为空");
        }
        if (email == null || email.trim().isEmpty()) {
            throw new ApiException("邮箱不能为空");
        }
        if (school == null || school.trim().isEmpty()) {
            throw new ApiException("学校不能为空");
        }
        if (education == null || education.trim().isEmpty()) {
            throw new ApiException("学历不能为空");
        }
    }
} 